<?php

namespace Models;

class Money_log extends Model
{
	protected $_table = 'money_logs';

	protected $_filter = false;

	protected $_belongs = [
		'user' => [
			'class' => User::Class,
			'foreign' => 'id',
			'belongs_key' => 'user_id',
		],
		'cashier' => [
			'class' => Cashier::Class,
			'foreign' => 'id',
			'belongs_key' => 'cashier_id',
		],
		'recharge' => [
			'class' => Recharge::Class,
			'foreign' => 'id',
			'belongs_key' => 'relation_id'
		]
	];

}
